home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cc02.zip / CCSTRIP.C < prev    next >
Text File  |  1985-08-28  |  233b  |  14 lines

  1. /* ccstrip: strip non-graphic characters */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.       int   c;
  8.  
  9.       while ((c = getchar()) != EOF)
  10.      if ((c >= ' ' && c < '\177') || c == '\t' || c == '\n')
  11.         putchar(c);
  12.       exit(0);
  13. }
  14.